import { Base } from '../../utils/base.js';

class ycSelect extends Base {
  constructor() {
    super();
  } //查询姓名手机号避免填写


  getinfo(callBack) {
    var params = {
      url: 'getinfo',
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  }

  getFare(aid, callBack) {
    var param = {
      url: 'getFare/' + aid,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getOrder(aid, id, callBack) {
    var param = {
      url: 'getOrder/' + aid + '?id=' + id,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getTebie(aid, callBack) {
    var param = {
      url: 'getTebie?id=' + aid,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getquehuo(aid, phone, quehuo_num, word, priceid, callBack) {
    var param = {
      url: 'quehuo?aid=' + aid + '&phone=' + phone + '&quehuo_num=' + quehuo_num + '&word=' + word + '&priceid=' + priceid,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

}

export { ycSelect };